require('./app.less');

import React,{Component} from 'react';
import ReactDOM from 'react-dom';
import { HashRouter, BrowserRouter, MemoryRouter, Route, Control } from 'react-keeper'

import './wx';
import DB from './db';
import PageHome from 'pages/home/';
import PageBinDingHome from 'pages/bindinghome/';
import PageMyInfoHome from 'pages/myinfo/';
import PageMyYeWuHome from 'pages/myyewu/';
import Utils from './../utils'


window.addEventListener('load', () => {
  FastClick.attach(document.body);
});

if (window.chrome && window.chrome.webstore) {
  setInterval(() => {
    document.body.focus();
  }, 200);
}

const isChrome = !!window.chrome && !!window.chrome.webstore


class App extends Component {
  render() {
    return (
      <HashRouter>
        <div>
          <PageHome.route  />
          <PageBinDingHome.route/>
          <PageMyInfoHome.route/>
          <PageMyYeWuHome.route/>
        </div>
      </HashRouter>
    )
  }
}

ReactDOM.render(<App/>, document.getElementById('App'))



